var d_I, d_U;
function d_A9(a) {
    var b = "";
    a = wb_ColoK.indexOf(a);
    -1 < a && (b = wb_ColoK.indexOf(";", a),
    b = wb_ColoK.substring(a, b));
    return b
}
var kuw_TestText = "啊阿埃挨哎唉哀皑癌蔼矮碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖厨熬翱袄傲奥懊澳芭捌叭吧笆疤巴拔跋靶把耙坝霸罢爸柏百摆佰败拜稗斑班搬般颁板版瓣帮梆榜膀棒磅蚌镑傍谤苞胞包褒剥薄雹保堡饱宝抱暴豹鲍爆杯碑悲卑辈背钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻鄙笔彼碧蓖蔽毙痹闭敝弊辟壁臂避陛鞭编扁便卞辨辩辫遍标彪膘表鳖憋别充崇宠初出处穿疮状", 
d_l = 0;
function kuw_Select_lxzk(a) {
    for (var b = 1; 10 >= b; b++)
        a == b ? G("butBox_button_" + b).className = "on" : G("butBox_button_" + b).className = "";
    d_l = 0;
    1 == a ? kuw_TestText = wblx_zg : 2 == a ? kuw_TestText = wblx_jmz : 3 == a ? kuw_TestText = wblx_z1 : 4 == a ? kuw_TestText = wblx_z2 : 5 == a ? kuw_TestText = wblx_sbm : 6 == a ? kuw_TestText = wblx_ncz : 7 == a ? kuw_TestText = d_o(wblx_jm1) : 8 == a ? kuw_TestText = d_o(wblx_jm2) : 9 == a ? kuw_TestText = d_o(wblx_jm3) : 10 == a && (kuw_TestText = d_o(wblx_jm4));
    $("viewinbm").innerHTML = "";
    d_$()
}
function d_o(a) {
    for (var b = [], c = 0; c < a.length; c++)
        b.push(a.charAt(c));
    a = [];
    for (c = 0; c < b.length; c++) {
        var d = Math.floor(Math.random() * b.length);
        a[c] = b[d];
        b.splice(d, 1)
    }
    return a.join("")
}
var d_H = []
  , d_g = []
  , d_e = 0;
function d_$() {
    d_l == kuw_TestText.length && (d_l = 0);
    d_e = 0;
    d_U.init();
    d_U.d_AE(kuw_TestText.charAt(d_l));
    var a = d_A9(kuw_TestText.charAt(d_l));
    "" != a ? (d_H = a.split(":"),
    "" != d_H[1] && d_U.Line(d_H[1]),
    "" != d_H[2] && d_U.d_AO(d_H[2], d_e + 1),
    "" != d_H[3] && (d_g = d_H[3].split(","),
    wbbm_Next_ts(),
    $("wbbm").innerHTML = d_g),
    "" != d_H[4] && d_U.d_Ac(d_H[4]),
    "" != d_H[5] && d_U.d_Aw(d_H[5])) : (d_H.length = 0,
    $("wbbm").innerHTML = "",
    d_g.length = 0,
    d_I.setxy(""));
    d_l++
}
var kuw_Count_RightNumber = 0
  , kuw_Count_WrongNumber = 0;
function kuw_InputTxt(a) {
    if (1 > d_g.length)
        d_$();
    else {
        var b = a.value.toLowerCase();
        b == d_g[0].charAt(d_e) || b == d_g[1].charAt(d_e) ? ($("viewinbm").innerHTML += b,
        3 == d_e ? ($("viewinbm").innerHTML = "",
        d_$(),
        kuw_Count_RightNumber++) : (d_e++,
        wbbm_Next_ts())) : " " == b && inwbbm() ? (d_$(),
        kuw_Count_RightNumber++) : (kuw_Count_WrongNumber++,
        $("errAudio").pause(),
        $("errAudio").currentTime = 0,
        $("errAudio").play())
    }
    a.value = ""
}
function inwbbm() {
    for (var a = d_g.length - 1; 0 <= a; a--)
        if (d_g[a] === $("viewinbm").innerHTML)
            return $("viewinbm").innerHTML = "",
            !0;
    return !1
}
function wbbm_Next_ts() {
    d_I.setxy(d_g[0].charAt(d_e));
    "1" == d_H[4] && 1 == d_e && (d_U.init(),
    d_U.d_AE(kuw_TestText.charAt(d_l - 1)),
    "" != d_H[1] && d_U.Line(d_H[1]));
    d_U.d_AO(d_H[2], d_e + 1)
}
d_AA = function() {
    $("InputText").focus();
    $("InputText").onpaste = function() {
        return !1
    }
    ;
    $("InputText").onFocus = function() {
        this.style.imeMode = "disabled"
    }
    ;
    window.onclick = function() {
        $("InputText").focus()
    }
    ;
    document.getElementById("content").removeChild($("loading"));
    debugger;
    d_I = new kuw_WBJP("wbjp");
    d_I.start();
    d_U = new WB_ColorSHow("wbhz")
}
;
var kuw_Count_Time;
function kuw_CheckLoad() {
	debugger;
    if (kuw_IsLowIE())
        clearInterval(kuw_CheckLoadTimer),
        document.getElementById("content").removeChild($("loading")),
        window.location.href = "info_error.php?id\x3d3";
    else if ("undefined" != typeof kuw_LoadCountJSFile && "undefined" != typeof kuw_load_wbjp && "undefined" != typeof kuw_load_WB_ColorSHow && "undefined" != typeof kuw_loadwb_TestTxt && "undefined" != typeof wb_ColoK)
        try {
            clearInterval(kuw_CheckLoadTimer),
            d_AA(),
            d_$(),
            kuw_Count_Time = setInterval("kuw_Start_Count()", 1E3)
        } catch (a) {}
}
var kuw_CheckLoadTimer = setInterval("kuw_CheckLoad()", 100);
